package com.schoolcloud.serve.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

/**
 *
 * @TableName sku
 */
@TableName(value ="sku")
@Data
public class Sku implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer skuId;

    /**
     * 名称
     */
    private String skuName;
    /**
     * 名称
     */
    private String skuTitle;

    /**
     *
     */
    private Integer spuId;

    /**
     * 分类id
     */
    private Integer categoryId;

    /**
     * 默认图片
     */
    private String defaultPic;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 描述
     */
    private String skuDescription;

    /**
     * 库存
     */
    private Integer stock;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
